import { request } from '@/utils/requestUtil'

export function confirmOrder(data) {
	return request({
		method: 'POST',
		url: '/admin/order/confirm',
		data: data
	})
}

export function generateOrder(data) {
	return request({
		method: 'POST',
		url: '/admin/order/generate',
		data: data
	})
}

export function listOrder(params) {
	return request({
		method: 'GET',
		url: '/admin/order/list',
		params:params
	})
}

export function detailOrder(params) {
	return request({
		method: 'GET',
		url: '/admin/order/detail',
		params:params
	})
}

export function paySuccess(data) {
	return request({
		method: 'POST',
		url: '/admin/order/paySuccess',
		data: data
	})
}

export function cancelOrder(data) {
	return request({
		method: 'POST',
		url: '/admin/order/cancelOrder',
		data: data
	})
}

export function deleteOrder(data) {
	return request({
		method: 'POST',
		url: '/admin/order/deleteOrder',
		data: data
	})
}
